﻿<?xml version="1.0" encoding="utf-8" ?>
<DbDataRequest connection="$ForumDBConnection$" type="$ForumDBType$" defaultFormatter="bizobj ThreadPost(createdBy)">
  <SqlStatement hasResults="true">
    SELECT
    id, title, description, dateCreated, createdById, createdByName as createdByuserName
    FROM ThreadPosts
    WHERE threadId=@threadId
    ORDER BY dateCreated DESC
  </SqlStatement>
  <Param name="threadId" type="UniqueIdentifier" />
</DbDataRequest>
